package com.ruoyi.doc.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文档模板对象 sys_doc
 * 
 * @author ruoyi
 * @date 2021-01-09
 */
public class SysDoc extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 文档名称 */
    @Excel(name = "文档名称")
    private String name;

    /** 文档编码 */
    @Excel(name = "文档编码")
    private String code;

    /** 实体类 */
    @Excel(name = "实体类")
    private String entityName;

    /** 文档模板 */
    @Excel(name = "文档模板")
    private String docxml;

    /** 文档地址 */
    @Excel(name = "文档地址")
    private String docurl;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setEntityName(String entityName) 
    {
        this.entityName = entityName;
    }

    public String getEntityName() 
    {
        return entityName;
    }
    public void setDocxml(String docxml) 
    {
        this.docxml = docxml;
    }

    public String getDocxml() 
    {
        return docxml;
    }
    public void setDocurl(String docurl) 
    {
        this.docurl = docurl;
    }

    public String getDocurl() 
    {
        return docurl;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("code", getCode())
            .append("entityName", getEntityName())
            .append("docxml", getDocxml())
            .append("docurl", getDocurl())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
